import request from "@/request";
export default{
    getAllSong(){
        return request.get('/getAllSong').then(response=> response )
    },
    getSong(data){
        return request.get('/getSong',{
            params: {
                name: data
              }
        }).then(response=> response )
    },
    saveSongMp3(data){
        return request.post('/saveMusic',data).then(response=> response )
    },
    getMusicInfo(data){
        return request.get(null,data).then(response=> response);
    }
}